import request from '@/utils/request'

export function fetchmetadataDirectoryList(data) {
  return request({
    url: '/system/directory/metadataDirectory/list',
    method: 'post',
    data
  })
}

export function getmetadataDirectory(id) {
  return request({
    url: '/system/directory/metadataDirectory/detail/' + id,
    method: 'get',
    params: { id }
  })
}

export function createmetadataDirectory(data) {
  return request({
    url: '/system/directory/metadataDirectory/add',
    method: 'post',
    data
  })
}

export function updatemetadataDirectory(data) {
  return request({
    url: '/system/directory/metadataDirectory/update',
    method: 'post',
    data
  })
}

export function deletemetadataDirectory(ids) {
  return request({
    url: '/system/directory/metadataDirectory/delete',
    method: 'post',
    data: { ids }
  })
}

